package top.infopub.job.cap.dao;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import top.infopub.generic.GenericDao;
import top.infopub.model.cap.PayInterestDetail;

import java.util.Date;
import java.util.List;

/** 融资付息详情(CAP_PAY_INTEREST_DETAIL) **/
@Repository
public interface PayInterestDetailDao extends GenericDao<PayInterestDetail, String> {
    /**
     * 根据融资付息主表ID查询子表列表
     * @param payInterestId
     * @return
     */
    List<PayInterestDetail> queryListByPayIntId(@Param("payInterestId") String payInterestId);

    /**
     * 查询指定起始时间内付息明细记录数量
     * @param startDate
     * @param endDate
     * @return
     */
    int queryCountByIntDate(@Param("startDate") Date startDate, @Param("endDate") Date endDate);
}